package 剑指Offer1;

public class _10在排序数组中查找数字 {
    public int search(int[] nums, int target) {
        if(nums == null || nums.length == 0) return 0;
        int res = 0;
        for(int i=0;i<nums.length;++i){
            if(nums[i] == target){
                res++;
            }
        }
        return res;
    }
}
